#include "StdAfx.h"
#include "Cgn.h"

Cgn::Cgn()
{
}

Cgn::~Cgn()
{

}

bool Cgn::setTCP(SocketCtrl::TCP *tcp)
{
	_tcp = tcp;

	return true;
}

SocketCtrl::TCP *Cgn::getTCP()
{
	return _tcp;
}

SOCKET Cgn::socket()
{
	return _tcp == NULL ? INVALID_SOCKET : _tcp->socket();
}

void Cgn::recv()
{
	char buf[64 * 1024L] = {0};
	_tcp->recv();
}